package com.cy.pj.modules.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class SkuVo {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 商品表的商品ID */
    //@Excel(name = "商品表的商品ID")
    private Long spuId;

    private String name;

    private Long shopId;
    /** 商品规格值列表，采用JSON数组格式 */
    //@Excel(name = "商品规格值列表，采用JSON数组格式")
    private String specifications;

    /** 商品货品价格 */
    //@Excel(name = "商品货品价格")
    @NotNull(message = "请填写价格")
    private BigDecimal price;

    /** 商品货品数量 */
    //@Excel(name = "商品货品数量")
    @NotNull(message = "请填写数量")
    private Long number;
// 订单选择的商品
    private String num;
    /** 商品货品图片 */
    //@Excel(name = "商品货品图片")
    private String url;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    /** 逻辑删除 */
    //@Excel(name = "逻辑删除")
    private Integer deleted;

}
